body {
  margin: 0 auto;
  width: 100%;
  padding: 0;
  height: 100vh;
  object-fit: cover;
  position: relative;
  display: flex;
  background: {
    image: url(../img/8.jpg);
    size: cover;
    repeat: no-repeat;
    position: 50%;
  }
  align-items: center;
  justify-content: center;
}

.login {
  position: relative;
  z-index: 5;
  width: 800px;
  height: 500px;
  display: flex;
  border-radius: 20px;
  box-shadow: 1px 0px 3px #525252, -1px -1px 3px #6c6c6c;
}
.signup {
  width: 50%;
  height: 100%;
  background-color: #e9e9e9;
  border-radius: 20px 0 0 20px;
}
.icon {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin: 40px 0;
  > .iconfont {
    font-size: 80px;
    color: #7c7a7a;
  }
}

.container-form {
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
form {
  width: 300px;
}
.link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #7c7a7a;
  margin: 10px 0;
}
input {
  border-radius: 5px;
  border-style: none;
  outline-style: none;
  padding-left: 5px;
  margin-top: 10px;
  height: 40px;
  width: 250px;
}
.submitBtn {
  cursor: pointer;
  &:hover {
    transform: translate(0px, 0px);
    box-shadow: 0px 1px 3px #777777;
  }
  box-shadow: 0px 3px 5px #777777;
  transform: translate(0px, -4px);
  display: block;
  width: 150px;
  height: 50px;
  color: white;
  font-size: 20px;
  margin-top: 30px;
  margin-left: 70px;
  background-image: linear-gradient(to right, #046fa5, #017c9b, #028599);
  border: {
    style: none;
    radius: 10px;
  }
}
.signup-img {
  width: 400px;
  height: 100%;
  border-radius: 0 20px 20px 0;
}

// 流星动画
.index-bg {
  position: absolute;
  width: 100vw;
  height: 100vh;
}
.index-bg .stars {
  .star {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transform-origin: 100% 0;
    animation: star-opacity 5s infinite ease-in, star-pos 5s infinite ease-in;
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, 0.3);
    opacity: 0;
    z-index: 2;
    &:nth-child(1) {
      top: 80px;
      left: 800px;
      animation-delay: 2s;
    }
    &:nth-child(2) {
      top: 40px;
      left: 646px;
      animation-delay: 1s;
    }
    &:nth-child(3) {
      top: 120px;
      left: 395px;
      animation-delay: 3s;
    }
    &:nth-child(4) {
      top: 160px;
      left: 765px;
    }
    &:nth-child(5) {
      top: 100px;
      left: 1200px;
      animation-delay: 1s;
    }
    &:nth-child(6) {
      top: 40px;
      left: 200px;
    }
    &:nth-child(7) {
      top: 200px;
      left: 1400px;
    }
  }
}

// 流星尾部
.index-bg .star:after {
  content: "";
  display: block;
  top: 0;
  left: 5px;
  width: 200px;
  height: 4px;
  background-image: linear-gradient(
    to right,
    white,
    rgba(220, 217, 217, 0),
    rgba(0, 0, 0, 0)
  );
  transform: rotate(-45deg) translate(1px, 3px);
  transform-origin: 0% 100%;
}
@keyframes star-opacity {
  0% {
    opacity: 0.1;
  }
  10% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.5;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@keyframes star-pos {
  0% {
    transform: scale(0) rotate(0) translate(0, 0);
  }
  100% {
    transform: scale(1) rotate(0) translate(-450px, 450px);
  }
}
